<ui:composition template="../template/plantilla_01.xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
    
    <ui:define name ="panelCentral">

        <h:form prependId="false" id="formulario" >

            <p:panel id="pCronologia" header="Cuenta Corriente" style="min-height: 400px;" >

                 <div class="saldoActual">
                     <h:outputText value="Saldo actual: " />
                     <h:outputText value="#{cuentaCorrienteBean.saldoActual}" >
                         <f:convertNumber pattern="$ #,###,##0.00" />
                     </h:outputText>
                 </div>                

                <p:tabView style="height: 270px; width: 100%;" >

                     <p:tab title="Importes Pendientes">
                         
                         <ui:include src="MovimientosPendientes.xhtml" />
                         
                     </p:tab>

                     <p:tab title="Historial" >
                         
                         <ui:include src="MovimientosHistorico.xhtml" />
                         
                     </p:tab>

                 </p:tabView>

                <h:panelGroup layout="block" styleClass="grupoBotones" >


                        <p:commandButton value="#{msgs.irCatalogo}" action="#{catalogoBean.verCatalogo}"
                                 icon="catalog16" ajax="false"  style="width: 140px;"
                                 process="@this"
                                 immediate="true"
                                 onclick="ajaxStatus3.show()"/>

                        <p:commandButton value="#{msgs.nuevoCarrito}" action="#{carritoBean.nuevoCarrito}"
                                         icon="blank16" ajax="false"  style="width: 140px;"
                                         process="@this"
                                         immediate="true"
                                         onclick="ajaxStatus3.show()" />

                </h:panelGroup>

            </p:panel>            

        </h:form>
    </ui:define>

</ui:composition>
